Optimal. Leaf size=73 \[ \frac {2 \sqrt {f+g x} \left (a g^2-b f g+c f^2\right )}{g^3}-\frac {2 (f+g x)^{3/2} (2 c f-b g)}{3 g^3}+\frac {2 c (f+g x)^{5/2}}{5 g^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 73, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.050, Rules used = {698} \[ \frac {2 \sqrt {f+g x} \left (a g^2-b f g+c f^2\right )}{g^3}-\frac {2 (f+g x)^{3/2} (2 c f-b g)}{3 g^3}+\frac {2 c (f+g x)^{5/2}}{5 g^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 698
Rubi steps
\begin {align*} \int \frac {a+b x+c x^2}{\sqrt {f+g x}} \, dx &=\int \left (\frac {c f^2-b f g+a g^2}{g^2 \sqrt {f+g x}}+\frac {(-2 c f+b g) \sqrt {f+g x}}{g^2}+\frac {c (f+g x)^{3/2}}{g^2}\right ) \, dx\\ &=\frac {2 \left (c f^2-b f g+a g^2\right ) \sqrt {f+g x}}{g^3}-\frac {2 (2 c f-b g) (f+g x)^{3/2}}{3 g^3}+\frac {2 c (f+g x)^{5/2}}{5 g^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.05, size = 54, normalized size = 0.74 \[ \frac {2 \sqrt {f+g x} \left (5 g (3 a g-2 b f+b g x)+c \left (8 f^2-4 f g x+3 g^2 x^2\right )\right )}{15 g^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.80, size = 54, normalized size = 0.74 \[ \frac {2 \, {\left (3 \, c g^{2} x^{2} + 8 \, c f^{2} - 10 \, b f g + 15 \, a g^{2} - {\left (4 \, c f g - 5 \, b g^{2}\right )} x\right )} \sqrt {g x + f}}{15 \, g^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.17, size = 77, normalized size = 1.05 \[ \frac {2 \, {\left (15 \, \sqrt {g x + f} a + \frac {5 \, {\left ({\left (g x + f\right )}^{\frac {3}{2}} - 3 \, \sqrt {g x + f} f\right )} b}{g} + \frac {{\left (3 \, {\left (g x + f\right )}^{\frac {5}{2}} - 10 \, {\left (g x + f\right )}^{\frac {3}{2}} f + 15 \, \sqrt {g x + f} f^{2}\right )} c}{g^{2}}\right )}}{15 \, g} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.00, size = 53, normalized size = 0.73 \[ \frac {2 \sqrt {g x +f}\, \left (3 c \,x^{2} g^{2}+5 b \,g^{2} x -4 c f g x +15 a \,g^{2}-10 b f g +8 c \,f^{2}\right )}{15 g^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.44, size = 77, normalized size = 1.05 \[ \frac {2 \, {\left (15 \, \sqrt {g x + f} a + \frac {5 \, {\left ({\left (g x + f\right )}^{\frac {3}{2}} - 3 \, \sqrt {g x + f} f\right )} b}{g} + \frac {{\left (3 \, {\left (g x + f\right )}^{\frac {5}{2}} - 10 \, {\left (g x + f\right )}^{\frac {3}{2}} f + 15 \, \sqrt {g x + f} f^{2}\right )} c}{g^{2}}\right )}}{15 \, g} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.12, size = 58, normalized size = 0.79 \[ \frac {2\,\sqrt {f+g\,x}\,\left (3\,c\,{\left (f+g\,x\right )}^2+15\,a\,g^2+15\,c\,f^2+5\,b\,g\,\left (f+g\,x\right )-10\,c\,f\,\left (f+g\,x\right )-15\,b\,f\,g\right )}{15\,g^3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 10.87, size = 223, normalized size = 3.05 \[ \begin {cases} \frac {- \frac {2 a f}{\sqrt {f + g x}} - 2 a \left (- \frac {f}{\sqrt {f + g x}} - \sqrt {f + g x}\right ) - \frac {2 b f \left (- \frac {f}{\sqrt {f + g x}} - \sqrt {f + g x}\right )}{g} - \frac {2 b \left (\frac {f^{2}}{\sqrt {f + g x}} + 2 f \sqrt {f + g x} - \frac {\left (f + g x\right )^{\frac {3}{2}}}{3}\right )}{g} - \frac {2 c f \left (\frac {f^{2}}{\sqrt {f + g x}} + 2 f \sqrt {f + g x} - \frac {\left (f + g x\right )^{\frac {3}{2}}}{3}\right )}{g^{2}} - \frac {2 c \left (- \frac {f^{3}}{\sqrt {f + g x}} - 3 f^{2} \sqrt {f + g x} + f \left (f + g x\right )^{\frac {3}{2}} - \frac {\left (f + g x\right )^{\frac {5}{2}}}{5}\right )}{g^{2}}}{g} & \text {for}\: g \neq 0 \\\frac {a x + \frac {b x^{2}}{2} + \frac {c x^{3}}{3}}{\sqrt {f}} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________